package com.ai.mall.service.impl;

import com.ai.mall.dao.ServiceDetailsDao;
import com.ai.mall.entity.ServiceDetailsEntity;
import com.ai.mall.service.ServiceDetailsService;
import com.ai.mall.utils.PageUtils;
import com.ai.mall.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("serviceDetailsService")
public class ServiceDetailsServiceImpl extends ServiceImpl<ServiceDetailsDao, ServiceDetailsEntity> implements ServiceDetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ServiceDetailsEntity> page = this.page(
                new Query<ServiceDetailsEntity>().getPage(params),
                new QueryWrapper<ServiceDetailsEntity>()
        );

        return new PageUtils(page);
    }

}